/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.ap.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.core.persistence.Page;
import com.jeeplus.core.service.CrudService;
import com.jeeplus.modules.ap.entity.Policy;
import com.jeeplus.modules.ap.mapper.PolicyMapper;

/**
 * 保单Service
 * @author 李超辉
 * @version 2018-09-06
 */
@Service
@Transactional(readOnly = true)
public class PolicyService extends CrudService<PolicyMapper, Policy> {

	public Policy get(String id) {
		return super.get(id);
	}
	
	public List<Policy> findList(Policy policy) {
		return super.findList(policy);
	}
	
	public Page<Policy> findPage(Page<Policy> page, Policy policy) {
		return super.findPage(page, policy);
	}
	
	@Transactional(readOnly = false)
	public void save(Policy policy) {
		super.save(policy);
	}
	
	@Transactional(readOnly = false)
	public void delete(Policy policy) {
		super.delete(policy);
	}
	
}